package com.zmn.plat.common.dto.product.tariff.category;

import com.zmn.plat.common.dto.product.tariff.base.BaseTariffProductDIO;
import lombok.Data;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Positive;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author linfeng
 * @description：计价器产品对应的所有后台产品的二级分类列表输入参数类
 * @since 2019/12/12 10:02
 * @modifier
 **/
@Data
@Valid
@ToString(callSuper = true)
public class TariffCategoryDIO extends BaseTariffProductDIO {
    private static final long serialVersionUID = 1954312602526189333L;

    /**
     * 故障服务项ID集合
     */
    @NotEmpty(message = "itemIds参数不能为空且个数不能超过100")
    @Size(min = 1,max = 100, message = "itemIds参数不能为空且个数不能超过100")
    private List<Integer> itemIds;

    /**
     * 品牌id
     */
    @Positive(message = "brandId必须为大于0的正整数")
    private Integer brandId;

}
